package org.example.builder;

import org.springframework.stereotype.Component;

/**
 * @author
 * @description
 */
@Component
public abstract class AbstractHouse {


    /**
     * 打地基
     * @author
     */
    public abstract void buildBasic();

    /**
     * 砌墙
     * @author
     */
    public abstract void buildWall();

    /**
     * 封顶
     * @author
     */
    public abstract void roofed();

    /**
     * 构建
     * @author
     */
    public void build() {
       buildBasic();
       buildWall();
       roofed();
    }
}
